/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package APP2.bookshop.controller;

public class UtilController {

    public static javax.swing.AbstractListModel getListModelFromArray(String[] arr) {
        final String[] elements = arr;
        return new javax.swing.AbstractListModel() {
            String[] strings = elements;
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        };
    }

}
